package com.fshuqing.learing.spring.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * @author fshuqing
 */
@Component
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {

    private String name;

    public static void main(String[] args) {
        String name = "112";
        User user
                = new User(name);
        System.out.println("user.getName() = " + user.getName());
    }
}
